﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _20._41
{
    internal class Program
    {
        static void Main(string[] args)
        {
            byte[] byaeData = new byte[200];
            char[] charData= new char[200];
            try
            {
                FileStream aFile = new FileStream(@"..\..\Program.cs", FileMode.Open);
                aFile.Seek(0, SeekOrigin.Begin);
                aFile.Read(byaeData,0, byaeData.Length);
                
            }
            catch (Exception a)
            {
                Console.WriteLine(a.Message);
                Console.ReadKey();
                return;
            }

            Decoder d=Encoding.UTF8.GetDecoder();
            d.GetChars(byaeData,0, byaeData.Length,charData,0);
            Console.WriteLine(charData);
            Console.ReadKey();
        }
    }
}
